package com.yc.cloud.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户与绘本关联
 *
 * @author Yancy
 * @since 2024-01-21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("product")
@ApiModel(value = "Product对象", description = "Product对象")
public class Product extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("产品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("产品描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("日常价格")
    @TableField("daily_price")
    private Integer dailyPrice;

    @ApiModelProperty("优惠价格")
    @TableField("price")
    private Integer price;

    @ApiModelProperty("会员时长")
    @TableField("duration")
    private Integer duration;

    @ApiModelProperty("备注")
    @TableField("note")
    private String note;


    public static final String NAME = "name";

    public static final String DESCRIPTION = "description";

    public static final String DAILY_PRICE = "daily_price";

    public static final String PRICE = "price";

}
